package com.jiukuaidao.zhulin.api;

import android.os.Environment;

import com.jiukuaidao.library.net.ApiBaseFileAbstract;
import com.jiukuaidao.library.net.MyRetroCallBack;
import com.jiukuaidao.library.net.RootResult;
import com.jiukuaidao.zhulin.util.RetrofitUtil;

import retrofit2.Call;


/**
 * Author : H_Joker
 * Date : 2016/5/13
 * Description :
 */
public class ApiPostFile<T> extends ApiBaseFileAbstract {

    public ApiPostFile(String dirName1, String fileName1, String dirName2, String fileName2, String category, MyRetroCallBack<T> myRetroCallBack) {
        super(myRetroCallBack);
        putFile("photos1", dirName1, fileName1);
        putFile("photos2", dirName2, fileName2);
        putParam("category", category);
        Environment.getDataDirectory();
    }

    @Override
    public Call<RootResult> getCall() {
        return RetrofitUtil.getUploadPicManager().postFiles(mParams);
    }
}
